import dayjs from "dayjs";

export default (): any[] => {
  const list = [];
  const limitTime = dayjs()
    .startOf("day")
    .add(22, "hour");
  let index = 0;

  while (limitTime.isAfter(dayjs().add(index * 30, "minute"))) {
    list.push({
      id: index,
      time: dayjs()
        .add(index * 30, "minute")
        .format("HH:mm"),
      price: 6
    });
    index += 1;
  }
  return list;
};
